﻿using System;
using System.Collections.Generic;

using System.Text;
using System.Text.RegularExpressions;

namespace HZ.DrugTrade.BLL
{
    /// <summary>
    /// 搜索封装
    /// 对搜索关键字进行处理
    /// 
    /// </summary>
    class Search_Util
    {



        public static string GetModelQuery(string medicineModel)
        {
            return "";
        }
        /// <summary>
        /// 规格采用关键字处理
        /// </summary>
        /// <param name="Outlookc"></param>
        /// <returns></returns>
        public static string GetOutlookc(string Outlookc)
        {
            return "";
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="pack"></param>
        /// <returns></returns>
        public static string GetFactor(string pack)
        {
            Regex regex = new Regex(@"\d+");
            MatchCollection mc = regex.Matches(pack);
            if (mc.Count > 0)
            {
                Match m = mc[mc.Count - 1];
                return m.Value;
            }
            return pack;
        }
        /// <summary>
        /// 处理生产企业生产企业采用相似度处理
        /// </summary>
        /// <param name="CompanyName_SC"></param>
        /// <returns></returns>
        public static string GetCompanyName_SC(string CompanyName_SC)
        {
            Regex replace = new Regex("省"); //替换省市
            Regex replace2 = new Regex("有限|责任|公司|股份|制药|医药|生物|科技");
            return "";

        }
    }
}
